package com.vframework.system.org.mapper;

import java.util.List;
import java.util.Map;

import com.vframework.base.mapper.BaseMapper;
import com.vframework.base.model.BaseBean;
import com.vframework.system.org.model.OrgBean;
import com.vframework.system.role.model.RoleBean;
import com.vframework.system.user.model.UserBean;

public interface OrgMapper extends BaseMapper{
    
    public Integer getCount(Map<String, Object> paramMap);
    
    public List<OrgBean> getOrgList(Map<String, Object> paramMap);
    
    public OrgBean getOrgById(String orgId);
    
    public Integer getOrgIdExists(String orgId);
    
    public int insertOrg(OrgBean orgBean);
    
    public int updateOrg(OrgBean orgBean);
    
    public int deleteOrg(String... orgIds);
    
    public int deleteUserRole(String... orgIds);
    
    public int deleteOrgUser(String... orgIds);
    
    public int deleteRoleMenu(String... orgIds);
    
    public int deleteSysRole(String... orgIds);
    
    public int deleteSysOrgMenu(String... orgIds);
    
    public int insertOrgRole(RoleBean roleBean);
    
    public int insertOrgUser(UserBean userBean);
    
    public int insertUserRole(RoleBean roleBean);
    
    public int deleteOrgMenu(String orgId);
    
    public int insertOrgMenu(Map<String, Object> paramMap);
    
    public List<BaseBean> getMenus(String... ids);
}
 